package com.wei.czz.common.vo.common.dict;

import com.wei.czz.common.jsr303.group.Save;
import com.wei.czz.common.jsr303.group.Update;
import com.wei.czz.common.tool.BaseEntity;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * Created by IntelliJ IDEA.
 *
 * @author wei
 * date: 2022-08-14 10:46:02
 * className: DictVo 系统字典请求参数封装Vo类
 * version: 1.0
 * description:
 */
@Getter
@Setter
public class DictVo extends BaseEntity {

    /**
     * 字典主键
     */
    @NotNull(message = "字典主键不能为空", groups = { Update.class })
    private Long id;

    /**
     * 字典类型
     */
    @NotNull(message = "字典类型不能为空", groups = { Save.class, Update.class })
    private Integer type;

    /**
     * 字典值
     */
    @NotBlank(message = "字典值不能为空", groups = { Save.class, Update.class })
    private String value;

    /**
     * 字典值标题
     */
    @NotBlank(message = "字典值标题不能为空", groups = { Save.class, Update.class })
    private String valueLabel;

    /**
     * 排序等级
     */
    @NotNull(message = "排序等级不能为空", groups = { Save.class, Update.class })
    private Integer sort;

}
